/**      
 * @file		hello.cpp
 * @description		Demonstrates the use of a parent type to allow parent
 * 			and child class as valid parameters.		
 * @course		CSCI 123 Section 00000
 * @assignment 
 * @date		mm/dd/yyyy
 * @author		Brad Rippe (00000000) brippe@fullcoll.edu
 * @version		1.0
 */
#include <iostream>
#include <fstream>
using namespace std;

void sayHello(ostream& anyOutStream);

/**
 * @return zero if the application executes successfully
 */
int main() {
	ofstream fout;			// ofstream is a type of ostream
					// it inherits all of the functions and
					// members from ostream
	fout.open("hello.txt");
	sayHello(fout);
	sayHello(cout);
	return 0;
}

void sayHello(ostream& anyOutStream) {
	anyOutStream << "Hello";
}

